/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ProgramUtils;

import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 *
 * @author TeslaSolari
 */
public class Systemtasks {

    public Systemtasks() {
    }

    public boolean isInternetReachable() {
        try {

            InetAddress address = InetAddress.getByName("shuttlenet.dyndns-home.com");

            if (address == null) {
                return false;
            }

        } catch (UnknownHostException e) {
            return false;
        } catch (IOException e) {
            return false;
        }
        return true;
    }
}
